
#ifndef _MEMBER_BTIMER_H_
#define _MEMBER_BTIMER_H_

#include <BTimer>

#ifdef _WINDOWS_SYSTEM_
#include <Windows.h>
#undef min
#undef max
#endif

#define timer_member(clock)			((member_BTimer*)((BTimer*)clock)->_ptr)

namespace BWE
{
	class member_BTimer
	{
	public:
		member_BTimer(BTimer* clock);
		~member_BTimer();

		BTimer*		boss;
		int			count;
		int			interval;
		bool		started;
		
#ifdef _LINUX_
		timer_t 	timer;
#endif

#ifdef _WINDOWS_SYSTEM_
		void procTimerEvent(UINT uMsg, DWORD dwTime);
		UINT		handle;
#endif
	};
}

#endif
